package com.yy.micro.magic.data.model.vo;

import com.yy.micro.magic.data.model.base.JpaObject;

import java.util.Date;

public abstract class JpaObjectVo {

    private long createBy;

    private long modifiedBy;

    private Date createTime;

    private Date modifiedTime;

    public long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(long createBy) {
        this.createBy = createBy;
    }

    public long getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(long modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public void from(JpaObject from){
        if (null != from){
            setCreateBy(from.getCreateBy());
            setCreateTime(from.getCreateTime());
            setModifiedBy(from.getModifiedBy());
            setModifiedTime(from.getModifiedTime());
        }
    }

    public void to(JpaObject to){
    }
}
